/**
 * 自动生成！请勿修改！
 */
import { command } from '../core/command';

class SmartWatch {
    constructor(opt = {}) {
        const { device, to, ...opts } = opt;

        this.device = device || {};
        this.opts = opts || {};
        this._to = to;
    }

    get categoryCode() {
        return '010070006';
    }

    get categoryName() {
        return '\u624b\u8868';
    }

    getActualSteps(params) {
        return command({
            method: 'getActualSteps',
            methodId: 'pZgunZhP',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getGpsPosition(params) {
        return command({
            method: 'getGpsPosition',
            methodId: 'ppAXPrx5',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getSignalIntensity(params) {
        return command({
            method: 'getSignalIntensity',
            methodId: 'pUPQldZm',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setOrientation(params) {
        return command({
            method: 'setOrientation',
            methodId: 'peH3fARl',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }
}

export default SmartWatch;
